export default{
  install(Vue,options)
  {
    Vue.prototype.customNavBack = function () {
		if(getCurrentPages().length > 1){
			uni.navigateBack()
		}else{
			uni.switchTab({
				 url: '/pages/index/index'
			})
		}
    }
  }
}